<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/10
 * Time: 16:37
 */
namespace app\mobile\model;
use think\facade\Cache;
use think\Model;
class State extends Model {
    public function getNameTextAttr($value,$data)
    {
        //$name = [$data['id']=>$data['name']];
        $name = [1=>'未跟进',2=>'单人咨询2',3=>'单人咨询'];
        return $name[$data['name']];
    }
}